#!/bin/sh

# prepare data
# python ./deob/utils.py $1 $2 'Size'
python ./deob/utils.py $1 $2 'Random'
cd /space/Scalable-Malware-Detection/

# extract features
sudo mkdir '/space/outputlogsTerry'$1'B'$2'M/'
sudo /space/Scalable-Malware-Detection/runExtractor.sh '/space/webcrawl-malware/data/'$1'B'$2'MSamplesWTerry/' '/space/outputlogsTerry'$1'B'$2'M/'
cd /space/webcrawl-malware/src/

# features selection
sudo python ./model/algorithms.py '/space/outputlogsTerry'$1'B'$2'M/' 'binHist' 0 0.0001 &
sudo python ./model/algorithms.py '/space/outputlogsTerry'$1'B'$2'M/' 'binHist' 0.5 0.0001 &
sudo python ./model/algorithms.py '/space/outputlogsTerry'$1'B'$2'M/' 'scaleHist' 10 0.0001 &

